package com.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.dao.IUserDao;
import com.po.Menu;
import com.po.UserSys;

public class UserDao extends SqlMapClientDaoSupport implements IUserDao {

	public UserSys login(UserSys user) {
		return (UserSys)getSqlMapClientTemplate().queryForObject("UserSys.login",user);
	}

	public List<Menu> findRoleMenu(UserSys user) {
		return (List<Menu>) getSqlMapClientTemplate().queryForList("UserSys.findRoleMenu",user);
	}

	

}
